<script type="text/javascript" src="templates/mwc_energitek/Scripts/easyTooltip.js"></script>
<script type="text/javascript">
	$(document).ready(function(){	
		$("a").easyTooltip();
		$("a#link").easyTooltip({
			tooltipId: "easyTooltip2",
			content: '&nbsp;'
		});
	});
</script>
<script type="text/javascript">
function confirm_val()
{
	var person=document.getElementById("contact_person");
	var username=document.getElementById("contact_name");
	var emne=document.getElementById("contact_emne");		
	var mail=document.getElementById("contact_email");
	var text=document.getElementById("contact_mesage");
    
	if (person.value == 'Kontaktperson')
	{
		alert('Kontaktperson skal udfyldes!');
		person.focus();
		return false;
	}
	var apos = mail.value.indexOf("@");
	var dotpos = mail.value.lastIndexOf(".");
	if (apos<1||dotpos-apos<2) 
	{
		alert('Email skal udfyldes!');
		mail.focus();
		return false;
	} 
    
	if (username.value == 'Firma/navn')
	{
		alert('Firma/navn skal udfyldes!');
		username.focus();
		return false;
	} 
	
	
	if (emne.value == 'Emne')
	{
		alert('Emne skal udfyldes!');
		emne.focus();
		return false;
	}
	if (text.value == 'Din besked')
	{
		alert('Din besked skal udfyldes!');
		text.focus();
		return false;
	}
     
	return true;
}

function kontack_person()
{
	var person=document.getElementById("contact_person");
	var username=document.getElementById("contact_name");
	var eme=document.getElementById("contact_emne");		
	var mail=document.getElementById("contact_email");
	var text=document.getElementById("contact_mesage");
	person.value="";
	if(mail.value=="")
      mail.value="Email";
    if(username.value=="")
    	username.value="Firma/navn";
    if(eme.value=="")
        eme.value="Emne";
    if(text.value=="")
        text.value="Din besked";
}
function kontack_email()
{
	var person=document.getElementById("contact_person");
	var username=document.getElementById("contact_name");
	var eme=document.getElementById("contact_emne");		
	var mail=document.getElementById("contact_email");
	var text=document.getElementById("contact_mesage");
	mail.value="";
	if(person.value=="")
      person.value="Kontaktperson";
    if(username.value=="")
    	username.value="Firma/navn";
    if(eme.value=="")
        eme.value="Emne";
    if(text.value=="Din besked")
        text.value="Din besked";
}
function kontack_name()
{
	var person=document.getElementById("contact_person");
	var username=document.getElementById("contact_name");
	var eme=document.getElementById("contact_emne");		
	var mail=document.getElementById("contact_email");
	var text=document.getElementById("contact_mesage");
	username.value="";
	if(person.value=="")
      person.value="Kontaktperson";
    if(mail.value=="")
    	mail.value="Email";
    if(eme.value=="")
        eme.value="Emne";
    if(text.value=="")
        text.value="Din besked";
}
function kontack_eme()
{
	var person=document.getElementById("contact_person");
	var username=document.getElementById("contact_name");
	var eme=document.getElementById("contact_emne");		
	var mail=document.getElementById("contact_email");
	var text=document.getElementById("contact_mesage");
	eme.value="";
	if(person.value=="")
      person.value="Kontaktperson";
    if(mail.value=="")
    	mail.value="Email";
    if(username.value=="")
    	username.value="Firma/navn";
    if(text.value=="")
        text.value="Din besked";
}
function kontack_mesage()
{
	var person=document.getElementById("contact_person");
	var username=document.getElementById("contact_name");
	var eme=document.getElementById("contact_emne");		
	var mail=document.getElementById("contact_email");
	var text=document.getElementById("contact_mesage");
	text.value="";
	if(person.value=="")
      person.value="Kontaktperson";
    if(mail.value=="")
    	mail.value="Email";
    if(username.value=="")
    	username.value="Firma/navn";
    if(eme.value=="")
        eme.value="Emne";
}

</script>
<div class="col1 w920">
          <div class="title_long text_tt p10t p25b p10l m10t"> Hvem er vi? </div>
          <div class="panel">
            <div class=" w277 float_left">
              <div class="p10l p10b p5t contact">
                <p> <img src="templates/mwc_energitek/img/small.jpg" alt="" /></p>
                <br />
                <br />
                <p> Mårkærvej 7 , 2630 Taastrup<br />
                  Tel: <span dir="ltr" title="Call this phone number in Denmark with Skype: +4572425577">+45 72 42 55 77     </span><br />
                  Fax:+45 43 47 47 23<br />
                  E-mail:<a href="mailto:et@energitek.dk">et@energitek.dk</a><br />
                </p>
              </div>
              <a href="#" id="link"><img src="templates/mwc_energitek/img/btn_findosher.jpg" /></a> </div>
            <div class="float_right">
              <div class="kontakt_form"> Du er altid velkommen til at kontakte os, hvis du har et spørgsmål -
                hvad enten det er af faglig eller teknisk karakter<br />
                <br />
                <form action="<?php echo JRoute::_( 'index.php' );?>" method="post" name="emailForm" id="emailForm" class="subcolumns" onsubmit="return confirm_val()">
                 <div class="w290 float_left">
                  <input type="text" value="Kontaktperson" name="contact_person" id="contact_person" onclick="kontack_person();"/>
                  <br />
                  <input type="text" value="Email" id="contact_email" name="contact_email" onclick="kontack_email();"/>
                  <br />
                  <input type="text" value="Firma/navn" name="contact_name" id="contact_name" onclick="kontack_name();"/>
                  <br />
                  <input type="text" value="Emne" name="contact_emne" id="contact_emne" onclick="kontack_eme();"/>
                </div>
                <div class="w290 float_left">
                  <textarea rows="10" cols="10" name="contact_mesage" id="contact_mesage" onclick="kontack_mesage();">Din besked</textarea>
                  <br />
                  <a href="javascript:void(0)" onclick="if(confirm_val()) document.getElementById('emailForm').submit();" class="float_left"><img src="templates/mwc_energitek/img/btn_send.png" alt="" /></a> <a href="javascript:void(0)" onclick=" document.getElementById('emailForm').reset();" class="float_left"><img src="templates/mwc_energitek/img/btn_nulstil.png" alt=""/></a> 
                  </div>
                    <input type="hidden" name="option" value="com_contact" />
	                <input type="hidden" name="view" value="contact" />
	                <input type="hidden" name="id" value="<?php echo $this->contact->id; ?>" />
	                <input type="hidden" name="task" value="submit" />
                </form>  
                <div class="clear_left"></div>
              </div>
            </div>
          </div>
        </div>